Listing 3 shows AddSequenceTweenAtom , a routine that adds a kTweenEntry atom for a sequenced tween. The newSequenceAtom returned may be passed into the AddTweenAtom and AddSequenceElement routines as their sequenceAtom parameter.
To create a nonsequenced tween, use AddTweenAtom instead.
Listing 3 Utility routine AddSequenceTweenAtom
OSErr AddSequenceTweenAtom( QTAtomContainer container, QTAtom parentAtom,
QTAtomID sequenceAtomID, QTAtom *newSequenceAtom )
{
if ( (! container) || (sequenceAtomID == 0) ) { return paramErr; }
return QTInsertChild( container, parentAtom, kTweenEntry,
sequenceAtomID, 0, 0, nil, newSequenceAtom );
}
| Previous | Chapter Contents | Chapter Top | Next |